Skip to content

RST sandbox network connections on sandbox close#1414

Merged
ValentaTomas merged 10 commits into
mainfrom
orch-conn-termination
Nov 4, 2025
Merged

RST sandbox network connections on sandbox close#1414
ValentaTomas merged 10 commits into
mainfrom
orch-conn-termination

Conversation

@ValentaTomas
Copy link
Copy Markdown
Member

@ValentaTomas ValentaTomas commented Oct 28, 2025

TODO:

  • Don't return errors that are expected when closing connections
  • Check if RST correctly propagates to client/error in client

@ValentaTomas ValentaTomas requested a review from sitole October 29, 2025 15:15
@ValentaTomas ValentaTomas assigned sitole and unassigned djeebus Oct 29, 2025
@ValentaTomas ValentaTomas marked this pull request as ready for review October 30, 2025 21:34
@ValentaTomas ValentaTomas requested a review from djeebus October 30, 2025 21:42
@ValentaTomas ValentaTomas changed the title Terminate sandbox network connections on sandbox close RST sandbox network connections on sandbox close Oct 30, 2025
@ValentaTomas
Copy link
Copy Markdown
Member Author

ValentaTomas commented Oct 30, 2025

🚧 Will also add a test.

Comment thread packages/shared/pkg/proxy/tracking/connection.go
@ValentaTomas
Copy link
Copy Markdown
Member Author

Will be checking the failed integration tests.

@ValentaTomas
Copy link
Copy Markdown
Member Author

ValentaTomas commented Oct 31, 2025

Will be checking the failed integration tests.

On the rerun they went through, will still check (https://github.com/e2b-dev/infra/actions/runs/18963434009/job/54155528873?pr=1414).

EDIT: Should not be related to this PR changes.

@ValentaTomas ValentaTomas enabled auto-merge (squash) October 31, 2025 16:45
m: m,
}

if m != nil {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want m to ever be nil? seems like we could simplify this a little by always tracking connections

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we don't track this for the incoming conn at all as we never have a use case with cancelling these.

@ValentaTomas ValentaTomas merged commit 8d24e90 into main Nov 4, 2025
46 of 47 checks passed
@ValentaTomas ValentaTomas deleted the orch-conn-termination branch November 4, 2025 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants